﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LeanEngine.Data.Linq.Language
{
    public sealed class CoalesceToken : CompareToken
    {
        #region PropertyInfo Members

        public string CustomFieldName { get; set; }

        #endregion

        #region CompareToken Members

        public override string GetStatement()
        {
            return this.Field.Table.Alias + "." + this.CustomFieldName + " " + this.Operator + " " + this.CompareValue + " " + CombineOperator;
        }

        #endregion
    }
}
